package com.chancingpack.dal.dao.mybatis;

import com.chancingpack.dal.dao.WxBookDao;
import com.chancingpack.dal.model.WxBook;
import com.chancingpack.dal.service.WxBookMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2017/7/29.
 */
@Repository
public class WxBookDaoImpl implements WxBookDao {
    @Autowired
    WxBookMapper mapper;
    public boolean insertBook(WxBook record) {
        return mapper.insertBook(record)>0;
    }

    public List<Map<String, Object>> selectByCustId(Map<String,Object> map) {
        return mapper.selectByCustId(map);
    }

    public boolean deleteByPrimaryKey(int bookId) {
        return mapper.deleteByPrimaryKey(bookId)>0;
    }

    public boolean insertsgslecompact(Map<String, Object> map) {


        return mapper.insertsgslecompact(map)>0;
    }


    public List<Map<String, Object>> selectsgbasCustInfo(String custId) {
        return mapper.selectsgbasCustInfo(custId);
    }

    public List<Map<String, Object>> selectsgBasCorpInfo(String purveCode) {
        return mapper.selectsgBasCorpInfo(purveCode);
    }

    public List<String> selectsgSleCompact(String CompaCode) {
        return mapper.selectsgSleCompact(CompaCode);
    }

    public String selectcompaId() {
        return mapper.selectcompaId();
    }

    public boolean insertsgSleCompactDetail(Map<String, Object> map) {
        return mapper.insertsgSleCompactDetail(map)>0;
    }

    public int selectdetailId() {
        return mapper.selectdetailId();
    }
}
